<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.tony.personalcore.dao.dataobject.AccountDO"%>
<%
	AccountDO accountDO = (AccountDO)request.getAttribute("accountDO");

%>

<html>

	<head>
		<script type="text/javascript" src="js/jquery.js"></script>
		
		
	</head>
	<body>
            hello,<%=accountDO.getEmail() %> ,your balance is  <%=accountDO.getBalance() %>
                    ,your account is created at <%=accountDO.getGmtCreate() %>
                    <p/>
                    words:<%=(String)request.getAttribute("words") %>

<p>

	<script type="text/javascript">
	
		$(document).ready(function(){
			setInterval("refresh()",10000);
		});
		
		function refresh(){
			
			refreshNewBalance('<%=accountDO.getEmail() %>');
		}
	
		function refreshNewBalance(email){
	
			$.post("login.htm",{"email":email,"type":"requireRefreshBalance"},function(data){			
				$("#balance").html(data);
			});
			
		}
	</script>
	
	 <input type="button" value="点击获取你最新的余额" onclick="return getNewBalance('<%=accountDO.getEmail()%>')"/>:<span id="balance"></span>
	</body>
	
</html>